<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        body{
            padding: 100px;
        }
    span{
    display: inline-block;
    width: 30px;
    height: 60px;
    background-color: red;
    border-radius: 30px 30px 0 0;
    }
    span:nth-child(1){
        transform: rotateZ(-45deg);
    }
    span:nth-child(2){
        transform: rotateZ(45deg);
        margin-left:-13px;
    }
    div{
        display: inline-block;
        animation: heart 1s infinite;
    }
 @keyframes heart{
     30%{
         transform: scale(1.5);
     }
     100%{
        transform: scale(1);
     }
 }
    </style>
</head>
<body>
    <div>
    <span></span>
    <span></span>
</div>
为你心动
</body>
</html>